/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.z100h.supplychain.order.entity.Order;
import com.z100h.supplychain.order.entity.OrderVo;

/**
 * 订单MAPPER接口
 * @author fyh
 * @version 2019-04-15
 */
@MyBatisMapper
public interface OrderMapper extends BaseMapper<Order> {

	public void updateOrderStockoutId(@Param("evidenceId") String evidenceId, @Param("orderIds") List<String> orderIds);

	public List<String> findOrderIdsByEvidenceId(String evidenceId);

	public List<String> findRepairIdsByEvidenceId(String evidenceId);

	public String getStockroomIdByStockoutId(String stockoutId);

	public List<String> findOrderIdsByEvidenceIds(@Param("evidenceIds") List<String> evidenceIds);

	public String getRentType(String orderId);

	public List<String> findListByStockroomId(@Param("stockroomId") String stockroomId);

	public List<String> findOrderList(@Param("stockroomId") String stockroomId,
			@Param("isSupplement") String isSupplement);

	public List<String> findRepairList(String stockroomId);

	public void updateOrderStockoutIdByOrderId(@Param("evidenceId") String evidenceId,
			@Param("orderId") String orderId);

	public void updateRepairStockoutId(@Param("evidenceId") String evidenceId,
			@Param("serviceIds") List<String> serviceIds);

	public List<OrderVo> findByPage(OrderVo orderVo);

	public void updateOrderPurchasePrice(@Param("orderIds") List<String> orderIds,
			@Param("targetMonth") String targetMonth);

	public void updateRepairPurchasePrice(@Param("repairIds") List<String> repairIds,
			@Param("targetMonth") String targetMonth);
}